package test.impl.spring;

import test.iface.PasswordReader;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Required;
import org.osomit.sacct.provider.iface.AccountProvider;

/**
 *
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jul 5, 2009
 * 
 */
public class PasswordReaderImpl implements PasswordReader{
    
    private String custAccountPwd;

    private String prodAppPwd;

    public String getCustAccountPwd() {
        return custAccountPwd;
    }

    public void setCustAccountPwd(String custAccountPwd) {
        this.custAccountPwd = custAccountPwd;
    }

    public String getProdAppPwd() {
        return prodAppPwd;
    }

    public void setProdAppPwd(String prodAppPwd) {
        this.prodAppPwd = prodAppPwd;
    }

    public String showPassword() {
        StringBuffer sb = new StringBuffer(64);
        sb.append("custApp: ").append(this.custAccountPwd)
                .append(", prodApp: ").append(this.prodAppPwd);

        return sb.toString();
    }
}
